<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}" readonly="true">
        </div>
    </div>

    {if $row.title == 'Fedex'}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">account_number:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account_number" class="form-control" name="row[account_number]" type="text" value="{if isset($row.config.account_number)}{$row.config.account_number}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">client_id:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-client_id" class="form-control" name="row[client_id]" type="text" value="{if isset($row.config.client_id)}{$row.config.client_id}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">client_secret:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-client_secret" class="form-control" name="row[client_secret]" type="text" value="{if isset($row.config.client_secret)}{$row.config.client_secret}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_postal_code:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_postal_code" class="form-control" name="row[shipper_postal_code]" type="text" value="{if isset($row.config.shipper_postal_code)}{$row.config.shipper_postal_code}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_country_code:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_country_code" class="form-control" name="row[shipper_country_code]" type="text" value="{if isset($row.config.shipper_country_code)}{$row.config.shipper_country_code}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_person_name:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_person_name" class="form-control" name="row[shipper_person_name]" type="text" value="{if isset($row.config.shipper_person_name)}{$row.config.shipper_person_name}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_phone_number:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_phone_number" class="form-control" name="row[shipper_phone_number]" type="text" value="{if isset($row.config.shipper_phone_number)}{$row.config.shipper_phone_number}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_street_lines:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_street_lines" class="form-control" name="row[shipper_street_lines]" type="text" value="{if isset($row.config.shipper_street_lines)}{$row.config.shipper_street_lines}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_city:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_city" class="form-control" name="row[shipper_city]" type="text" value="{if isset($row.config.shipper_city)}{$row.config.shipper_city}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_state_or_province_code:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_state_or_province_code" class="form-control" name="row[shipper_state_or_province_code]" type="text" value="{if isset($row.config.shipper_state_or_province_code)}{$row.config.shipper_state_or_province_code}{/if}">
        </div>
    </div>
    {else}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">usps_user_id:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-usps_user_id" class="form-control" name="usps[usps_user_id]" type="text" value="{if isset($row.config.usps_user_id)}{$row.config.usps_user_id}{/if}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">shipper_zip_origination:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-shipper_zip_origination" class="form-control" name="usps[shipper_zip_origination]" type="text" value="{if isset($row.config.shipper_zip_origination)}{$row.config.shipper_zip_origination}{/if}">
        </div>
    </div>
    {/if}

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
